Pod::Spec.new do |s|
  s.name             = 'UGSDK'
  s.version          = '0.0.2'
  s.summary          = 'A short description of UGSDK.'
  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

  s.homepage         = 'https://gitee.com/wangclwl/ugsdk-libs'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'YourName' => 'your.email@example.com' }
  
  # 支持的平台和版本
  s.platform         = :ios, '13.0'
  s.ios.deployment_target = '13.0'
  
  # 源码地址（这里使用 xcframework 的 zip 文件）
  s.source           = { :http => 'https://gitee.com/wangclwl/ugsdk-libs/releases/download/0.0.2/Masonry.xcframework.zip' }
  
  # 指定 xcframework
  s.vendored_frameworks = 'Masonry.xcframework'
  
  # 支持的架构
  s.pod_target_xcconfig = {
    'VALID_ARCHS' => 'x86_64 arm64',
    'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' # 排除 i386 架构
  }
  
  # 确保是静态框架
  s.static_framework = true
  
  # 如果需要依赖其他 pod
  # s.dependency 'SomeOtherPod'
  
  # 如果需要包含资源文件
  # s.resource_bundles = {
  #   'UGSDK' => ['UGSDK/Assets/*.png']
  # }
  
  # 如果需要公开的头文件
  # s.public_header_files = 'Pod/Classes/**/*.h'
  # s.source_files = 'Pod/Classes/**/*'
end